package request

type TagForm struct {
	Name      string `form:"name" json:"name" binding:"required"`
	Symbol    string `form:"symbol" json:"symbol" binding:"required"`
	CreatedBy int64  `form:"created_by" json:"created_by"`
	Type      int8   `form:"type" json:"type" binding:"required"`
}

// GetMessages 自定义错误信息
func (r TagForm) GetMessages() ValidatorMessages {
	// 全部小写
	return ValidatorMessages{
		"name.required":   "标签名不能为空",
		"symbol.required": "符号不能为空",
		"type.required":   "标签类型不能为空",
	}
}
